package com.lti.appnet.module.response;

import com.lti.appnet.module.domain.Module;

import java.util.List;

/**
 * Created by sinceow on 2014/7/30.
 */
public class ModuleRes {

    private String id;
    private String authorId;
    private String name;

    private List<CategoryRes> categories;

    public ModuleRes() {
        super();
    }

    public ModuleRes(Module module) {
        this.id = module.getID();
        this.authorId = module.getAuthorId();
        this.name = module.getName();
    }

    public List<CategoryRes> getCategories() {
        return categories;
    }

    public void setCategories(List<CategoryRes> categories) {
        this.categories = categories;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAuthorId() {
        return authorId;
    }

    public void setAuthorId(String authorId) {
        this.authorId = authorId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
